def isPalindrome(x: int) -> bool:
    if x < 0:
        return False
    if x < 10:
        return True
    t = str(x)
    l1 = len(t)
    s, e = 0, l1-1
    while s < e:
        if t[s] != t[e]:
            return False
        s += 1
        e -= 1
    return True

